package StrategyMode.version6;

import java.util.ArrayList;
import java.util.Scanner;

/**
 * Created by ycq on 2018/10/19.
 */
public class Main {
    public static void main(String[] args) {

        Double totol=0d;
        Double totalPrices=0.0;
        Scanner in=new Scanner(System.in);
        CashContext CC=new CashContext();
        System.out.println("输入单价");
        Double txtPrice = in.nextDouble();
        System.out.println("输入数量");
        Double txtNum = in.nextDouble();
        totalPrices = CC.GetResult(txtPrice * txtNum);
        totol = totol + totalPrices;
        System.out.println("单价:" + txtPrice + " 数量:" + txtNum + " 合计:" + totalPrices);
        System.out.println("总计：" + totol);
    }


}
